<%@ page import="com.wy.util.DBUtil" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: 13939
  Date: 2024/12/2
  Time: 10:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  String hid = request.getParameter("hid");
  String sql = "DELETE FROM news_headline WHERE hid = "+hid;
  DBUtil dbUtil = new DBUtil();
  int n = dbUtil.update(sql);
  if (n > 0) {
    response.sendRedirect("/show/show.jsp");
  } else {
    out.print("删除失败!");
  }%>